solving quadratic equations with a leading coefficient of one